<?php

namespace co2\dev\v0_0_0\bash;

use co2\dev\v0_0_0 as co2;

class rm extends co2\bash

{
	public function
	__construct
	(
		$file,
		array $options=array()
	)
	
	{
		$this->cmd='rm ';
		
		if(in_array('r',$options) || in_array('recursive',$options))
		$this->cmd.='-r ';
		
		$this->cmd.=$file;
		
		$this->exec();
	}
}
